match x :
    case {'foo' :1, 'bar' :2} :
        pass
